package com.youlai.boot.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.core.security.model.UserAuthCredentials;
import com.youlai.boot.system.model.entity.GlobalSysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 全局用户Mapper
 *
 * @author youlaitech
 * @since 2025-11-08
 */
@Mapper
public interface GlobalSysUserMapper extends BaseMapper<GlobalSysUser> {

    /**
     * 根据OpenID获取用户认证信息
     *
     * @param openId 微信OpenID
     * @return 用户认证信息
     */
    UserAuthCredentials getAuthCredentialsByOpenId(@Param("openId") String openId);
}

